package com.ruoyi.blogs.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 问答管理对象 bs_faq
 * 
 * @author ruoyi
 * @date 2022-11-24
 */
@ApiModel(value = "BsFaq", description = "问答实体")
public class BsFaq extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 问答id */
    @ApiModelProperty(value = "id")
    private String id;

    /** 标签组 */
    @ApiModelProperty(value = "标签组")
    @Excel(name = "标签组")
    private String tags;

    /** 标题 */
    @ApiModelProperty(value = "标题")
    @Excel(name = "标题")
    private String title;

    /** 浏览量 */
    @ApiModelProperty(value = "浏览量")
    @Excel(name = "浏览量")
    private Long pageViewNum;

    /** 内容 */
    @ApiModelProperty(value = "内容")
    @Excel(name = "内容")
    private String content;

    /** 提问人id */
    @ApiModelProperty(value = "提问人id")
    @Excel(name = "提问人id")
    private Long userId;

    /** 描述 */
    @ApiModelProperty(value = "描述")
    @Excel(name = "描述")
    private String description;

    /** 是否显示 0显示 1不显示 */
    @ApiModelProperty(value = "是否显示 0显示 1不显示")
    @Excel(name = "是否显示 0显示 1不显示")
    private Integer visible;

    /** 是否热门 */
    @ApiModelProperty(value = "isHot")
    @Excel(name = "是否热门")
    private Long isHot;

    /** 用户名 */
    @ApiModelProperty(value = "用户名")
    @Excel(name = "用户名")
    private String userName;

    /** 频道id */
    @ApiModelProperty(value = "频道id")
    @Excel(name = "频道id")
    private Long channelId;

    /** 采纳的回答id */
    @ApiModelProperty(value = "采纳的回答id")
    @Excel(name = "采纳的回答id")
    private Long answerId;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setTags(String tags) 
    {
        this.tags = tags;
    }

    public String getTags() 
    {
        return tags;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setPageViewNum(Long pageViewNum) 
    {
        this.pageViewNum = pageViewNum;
    }

    public Long getPageViewNum() 
    {
        return pageViewNum;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setVisible(Integer visible) 
    {
        this.visible = visible;
    }

    public Integer getVisible() 
    {
        return visible;
    }
    public void setIsHot(Long isHot) 
    {
        this.isHot = isHot;
    }

    public Long getIsHot() 
    {
        return isHot;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setChannelId(Long channelId) 
    {
        this.channelId = channelId;
    }

    public Long getChannelId() 
    {
        return channelId;
    }
    public void setAnswerId(Long answerId) 
    {
        this.answerId = answerId;
    }

    public Long getAnswerId() 
    {
        return answerId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tags", getTags())
            .append("title", getTitle())
            .append("pageViewNum", getPageViewNum())
            .append("content", getContent())
            .append("userId", getUserId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("description", getDescription())
            .append("visible", getVisible())
            .append("isHot", getIsHot())
            .append("userName", getUserName())
            .append("channelId", getChannelId())
            .append("answerId", getAnswerId())
            .toString();
    }
}